package main

import (
	"fyne.io/fyne/v2"
	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/canvas"
	"fyne.io/fyne/v2/storage"
)

func main() {
	a := app.New()

	w := a.NewWindow("Sign")
	//w.SetContent(canvas.NewText("Text", color.Black))
	//w.SetContent(widget.NewIcon(theme.ContentCopyIcon()))
	//显示图片
	img := canvas.NewImageFromURI(storage.NewFileURI("/home/andrew/图片/mao.png"))

	w.SetContent(img)

	w.SetPadded(true)

	w.Resize(fyne.NewSize(120, 120))

	w.ShowAndRun()
}
